/*
 * JOY.h
 *
 * Created: 12.09.2012 19:04:15
 *  Author: mariuvi
 */ 


#ifndef JOY_H_
#define JOY_H_

#include "definitions.h"

typedef struct
{
	int x;
	int y;
	Direction dir;
}JOY_Pos;

void JOY_button_init();

void JOY_calibration();

JOY_Pos JOY_read();
int JOY_button_pressed();



#endif /* JOY_H_ */